<?php
header("Content-Type: text/html;charset=utf-8");
$ch2 = curl_init();
curl_setopt($ch2, CURLOPT_URL, 'https://cn.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=zh-CN');
curl_setopt($ch2, CURLOPT_HEADER, false);
curl_setopt($ch2, CURLOPT_RETURNTRANSFER, 1);
$json = curl_exec($ch2);
echo $jsonStr ;
$J=json_decode($json); 

print_r('https://cn.bing.com'. $J->images[0]->url);   


